package errcode

import (
	"github.com/gogf/gf/errors/gcode"
)

var (
	GetFromDbFailed               = gcode.New(1, "failed to get cron from db", nil)
	DelFromDbFailed               = gcode.New(2, "failed to delete from db", nil)
	CreateCronFailed              = gcode.New(3, "failed to create", nil)
	InvalidCronFmt                = gcode.New(4, "invalid cron format", nil)
	InvalidCronId                 = gcode.New(5, "invalid cron id", nil)
	InvalidCommandArg             = gcode.New(6, "invalid command argument", nil)
	CreateFailed                  = gcode.New(7, "failed to create item from db", nil)
	InvalidId                     = gcode.New(8, "invalid id", nil)
	IdNotFound                    = gcode.New(9, "id not found", nil)
	GetTaskFailed                 = gcode.New(10, "failed to get task", nil)
	UpdateTaskFailed              = gcode.New(11, "failed to update task", nil)
	DuplicatedTaskName            = gcode.New(12, "duplicated task name", nil)
	InvalidTaskName               = gcode.New(13, "invalid task name", nil)
	IpBlockedBySystem             = gcode.New(14, "client ip blocked by system", nil)
	IpBlockedAutoRelease          = gcode.New(15, "client ip blocked by system, but release after few days", nil)
	VerificationCode              = gcode.New(16, "verification code error", nil)
	InvalidRsaCode                = gcode.New(17, "invalid rsa code", nil)
	MissRequestHeader             = gcode.New(19, "missing request header", nil)
	AuthExpired                   = gcode.New(20, "authentication expired", nil)
	InvalidArgument               = gcode.New(21, "invalid argument", nil)
	InvalidPasswdFormat           = gcode.New(22, "invalid password format", nil)
	TargetDiskIsNotFree           = gcode.New(23, "target disk is not free", nil)
	SessionExpired                = gcode.New(24, "missing session", nil)
	IptableError                  = gcode.New(25, "local IP cannot be blocked", nil)
	DelOperationDenied            = gcode.New(26, "can not delete hyper-lock volume", nil)
	AccountDisabled               = gcode.New(27, "account has been disabled", nil)
	AccountExpired                = gcode.New(28, "account has been expired", nil)
	AuthenticationFailed          = gcode.New(29, "account authentication failed", nil)
	InvalidJSOFormat              = gcode.New(30, "Invalid JSON Format", nil)
	IncorrectFirewallRules        = gcode.New(31, "Incorrect Firewall Rules ", nil)
	FolderAlreadyOccupied         = gcode.New(32, "config already exist", nil)
	FolderIsNotEmpty              = gcode.New(33, "not empty", nil)
	SourcePathInvalid             = gcode.New(34, "source path can not be used", nil)
	SourcePathExist               = gcode.New(35, "source path already exist", nil)
	BadPassword                   = gcode.New(36, "Bad Password", nil)
	MountFailed                   = gcode.New(37, "Mount Device Failed", nil)
	EmailLimitError               = gcode.New(38, "Email exceed sent out limit", nil)
	InsufficientFreeMemory        = gcode.New(39, "insufficient free memory", nil)
	InsufficientHardDiskCapacity  = gcode.New(40, "insufficient hard disk capacity", nil)
	OtpNeedAuthentication         = gcode.New(41, "otp enabled and need to authentication", nil)
	OtpCodeNumberError            = gcode.New(42, "otp code number error", nil)
	NameContainsIllegalCharacters = gcode.New(43, "name contains illegal characters", nil)
	PermissionDenied              = gcode.New(90, "permission denied", nil)
	TpkNotInstall                 = gcode.New(91, "app not installed", nil)
	InvalidTpkID                  = gcode.New(94, "invalid app id", nil)
	InvalidTpkPackage             = gcode.New(95, "invalid app package", nil)
	UpdateFailed                  = gcode.New(96, "update failed", nil)
	ForbidLogin                   = gcode.New(97, "the user is forbid", nil)
	InvalidUser                   = gcode.New(98, "invalid user", nil)
	InvalidApi                    = gcode.New(99, "invalid api socket", nil)
	InternalErr                   = gcode.New(100, "internal error", nil)
	OccupiedBySnapshots           = gcode.New(101, "occupied by snapshots", nil)
	ParameterError                = gcode.New(102, "error authentication parameter", nil)
	SmbAuthError                  = gcode.New(103, "smb auth error", nil)
	PathDoesNotExist              = gcode.New(104, "path does not exist", nil)
	InvalidParam                  = gcode.New(105, "invalid request parameter", nil)
	SaveDataError                 = gcode.New(106, "Failed to save config data", nil)
	GetDataError                  = gcode.New(107, "Failed to get config data", nil)
	NeedSelectAFile               = gcode.New(108, "please select a file", nil)
	InvalidFile                   = gcode.New(109, "invalid file", nil)
	StorageMixedUse               = gcode.New(110, "storage hard drive mixed use", nil)
	InsufficientStorage           = gcode.New(111, "not enough storage space", nil)
	SafeModification              = gcode.New(112, "the coffer path cannot be manipulated", nil)
	FailedToDelete                = gcode.New(113, "file failed to delete", nil)
	FailedToConnCloDisk           = gcode.New(114, "Failed to conn the cloud disk", nil)
	UnsupportedFsFormat           = gcode.New(115, "Unsupported file system format", nil)
	DirIsOccupied                 = gcode.New(116, "Directory is occupied", nil)
	PleaseLogin                   = gcode.New(117, "please login", nil)
)
